"""Application entry point.

Expose FastAPI app instance for ASGI servers (uvicorn/gunicorn).
"""

from __future__ import annotations

from .core.app import create_app


app = create_app()

if __name__ == "__main__":
    import os

    import uvicorn

    port = int(os.getenv("PORT", "8000"))
    uvicorn.run("app.main:app", host="0.0.0.0", port=port, reload=True)
